import request from './urlCovert'

/*
路面损害状况
 */
export function addPavementDamage(data) {
  return request({
    url: '/PavementDamage/add',
    method: 'post',
    params: data
  })
}
export function deletePavementDamage(data) {
  return request({
    url: '/PavementDamage/delete',
    method: 'post',
    params: data
  })
}
export function searchPavementDamage(data) {
  return request({
    url: '/PavementDamage/search',
    method: 'post',
    params: data
  })
}
export function updatePavementDamage(data) {
  return request({
    url: '/PavementDamage/update',
    method: 'post',
    params: data
  })
}

/*
路面平整度检测
 */
export function addPavementFlatness(data) {
  return request({
    url: '/PavementFlatness/add',
    method: 'post',
    params: data
  })
}
export function deletePavementFlatness(data) {
  return request({
    url: '/PavementFlatness/delete',
    method: 'post',
    params: data
  })
}
export function searchPavementFlatness(data) {
  return request({
    url: '/PavementFlatness/search',
    method: 'post',
    params: data
  })
}
export function updatePavementFlatness(data) {
  return request({
    url: '/PavementFlatness/update',
    method: 'post',
    params: data
  })
}

/*
常规检测表
 */
export function searchRegularInspection(data) {
  return request({
    url: '/RegularInspection/search',
    method: 'post',
    params: data
  })
}
export function deleteRegularInspection(data) {
  return request({
    url: '/RegularInspection/delete',
    method: 'post',
    params: data
  })
}
export function updateRegularInspection(data) {
  return request({
    url: '/RegularInspection/update',
    method: 'post',
    params: data
  })
}

/*
定期巡检计划
 */
export function regularInspectionPlan(data) {
  return request({
    url: '/RegularInspection/GetRegularInspectionPlan',
    method: 'post',
    params: data
  })
}
